﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverlightHVP.View
{

   // For now SmoothStreamFramer is hardwired to hold smooth stream player
   public partial class SmoothStreamFramer : UserControl
   {
      private SmoothStreamPlayer player;
      public SmoothStreamFramer()
      {
         InitializeComponent();
         Loaded += new RoutedEventHandler( SmoothStreamFramer_Loaded );
         player = new SmoothStreamPlayer();
      }

      public SmoothStreamPlayer SetViewModel( ViewModel.FramerViewModel viewModel )
      {
         return player;
      }

      void SmoothStreamFramer_Loaded( object sender, RoutedEventArgs e )
      {
         
         
         player.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
         player.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
         FramerFrame.Content = player;
      }
   }
}
